3.319 \(\int \frac{(a+b \log (c (d+e x)^n))^2}{x^4 (f+g x^2)} \, dx\)

Optimal. Leaf size=694 \[ -\frac{b g^{3/2} n \text{PolyLog}\left (2,-\frac{\sqrt{g} (d+e x)}{e \sqrt{-f}-d \sqrt{g}}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{(-f)^{5/2}}+\frac{b g^{3/2} n \text{PolyLog}\left (2,\frac{\sqrt{g} (d+e x)}{d \sqrt{g}+e \sqrt{-f}}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{(-f)^{5/2}}-\frac{2 b^2 e^3 n^2 \text{PolyLog}\left (2,\frac{d}{d+e x}\right )}{3 d^3 f}-\frac{2 b^2 e g n^2 \text{PolyLog}\left (2,\frac{e x}{d}+1\right )}{d f^2}+\frac{b^2 g^{3/2} n^2 \text{PolyLog}\left (3,-\frac{\sqrt{g} (d+e x)}{e \sqrt{-f}-d \sqrt{g}}\right )}{(-f)^{5/2}}-\frac{b^2 g^{3/2} n^2 \text{PolyLog}\left (3,\frac{\sqrt{g} (d+e x)}{d \sqrt{g}+e \sqrt{-f}}\right )}{(-f)^{5/2}}+\frac{2 b e^3 n \log \left (1-\frac{d}{d+e x}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{3 d^3 f}+\frac{2 b e^2 n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )}{3 d^3 f x}-\frac{2 b e g n \log \left (-\frac{e x}{d}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{d f^2}+\frac{g (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{d f^2 x}+\frac{g^{3/2} \log \left (\frac{e \left (\sqrt{-f}-\sqrt{g} x\right )}{d \sqrt{g}+e \sqrt{-f}}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{2 (-f)^{5/2}}-\frac{g^{3/2} \log \left (\frac{e \left (\sqrt{-f}+\sqrt{g} x\right )}{e \sqrt{-f}-d \sqrt{g}}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{2 (-f)^{5/2}}-\frac{b e n \left (a+b \log \left (c (d+e x)^n\right )\right )}{3 d f x^2}-\frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{3 f x^3}-\frac{b^2 e^2 n^2}{3 d^2 f x}-\frac{b^2 e^3 n^2 \log (x)}{d^3 f}+\frac{b^2 e^3 n^2 \log (d+e x)}{3 d^3 f} \]

[Out]

-(b^2*e^2*n^2)/(3*d^2*f*x) - (b^2*e^3*n^2*Log[x])/(d^3*f) + (b^2*e^3*n^2*Log[d + e*x])/(3*d^3*f) - (b*e*n*(a +
 b*Log[c*(d + e*x)^n]))/(3*d*f*x^2) + (2*b*e^2*n*(d + e*x)*(a + b*Log[c*(d + e*x)^n]))/(3*d^3*f*x) - (2*b*e*g*
n*Log[-((e*x)/d)]*(a + b*Log[c*(d + e*x)^n]))/(d*f^2) - (a + b*Log[c*(d + e*x)^n])^2/(3*f*x^3) + (g*(d + e*x)*
(a + b*Log[c*(d + e*x)^n])^2)/(d*f^2*x) + (g^(3/2)*(a + b*Log[c*(d + e*x)^n])^2*Log[(e*(Sqrt[-f] - Sqrt[g]*x))
/(e*Sqrt[-f] + d*Sqrt[g])])/(2*(-f)^(5/2)) - (g^(3/2)*(a + b*Log[c*(d + e*x)^n])^2*Log[(e*(Sqrt[-f] + Sqrt[g]*
x))/(e*Sqrt[-f] - d*Sqrt[g])])/(2*(-f)^(5/2)) + (2*b*e^3*n*(a + b*Log[c*(d + e*x)^n])*Log[1 - d/(d + e*x)])/(3
*d^3*f) - (2*b^2*e^3*n^2*PolyLog[2, d/(d + e*x)])/(3*d^3*f) - (b*g^(3/2)*n*(a + b*Log[c*(d + e*x)^n])*PolyLog[
2, -((Sqrt[g]*(d + e*x))/(e*Sqrt[-f] - d*Sqrt[g]))])/(-f)^(5/2) + (b*g^(3/2)*n*(a + b*Log[c*(d + e*x)^n])*Poly
Log[2, (Sqrt[g]*(d + e*x))/(e*Sqrt[-f] + d*Sqrt[g])])/(-f)^(5/2) - (2*b^2*e*g*n^2*PolyLog[2, 1 + (e*x)/d])/(d*
f^2) + (b^2*g^(3/2)*n^2*PolyLog[3, -((Sqrt[g]*(d + e*x))/(e*Sqrt[-f] - d*Sqrt[g]))])/(-f)^(5/2) - (b^2*g^(3/2)
*n^2*PolyLog[3, (Sqrt[g]*(d + e*x))/(e*Sqrt[-f] + d*Sqrt[g])])/(-f)^(5/2)

________________________________________________________________________________________

Rubi [A]  time = 1.11448, antiderivative size = 717, normalized size of antiderivative = 1.03, number of steps used = 28, number of rules used = 20, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.69, Rules used = {2416, 2398, 2411, 2347, 2344, 2301, 2317, 2391, 2314, 31, 2319, 44, 2397, 2394, 2315, 2409, 2396, 2433, 2374, 6589} \[ -\frac{b g^{3/2} n \text{PolyLog}\left (2,-\frac{\sqrt{g} (d+e x)}{e \sqrt{-f}-d \sqrt{g}}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{(-f)^{5/2}}+\frac{b g^{3/2} n \text{PolyLog}\left (2,\frac{\sqrt{g} (d+e x)}{d \sqrt{g}+e \sqrt{-f}}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{(-f)^{5/2}}+\frac{2 b^2 e^3 n^2 \text{PolyLog}\left (2,\frac{e x}{d}+1\right )}{3 d^3 f}-\frac{2 b^2 e g n^2 \text{PolyLog}\left (2,\frac{e x}{d}+1\right )}{d f^2}+\frac{b^2 g^{3/2} n^2 \text{PolyLog}\left (3,-\frac{\sqrt{g} (d+e x)}{e \sqrt{-f}-d \sqrt{g}}\right )}{(-f)^{5/2}}-\frac{b^2 g^{3/2} n^2 \text{PolyLog}\left (3,\frac{\sqrt{g} (d+e x)}{d \sqrt{g}+e \sqrt{-f}}\right )}{(-f)^{5/2}}-\frac{e^3 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{3 d^3 f}+\frac{2 b e^3 n \log \left (-\frac{e x}{d}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{3 d^3 f}+\frac{2 b e^2 n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )}{3 d^3 f x}-\frac{2 b e g n \log \left (-\frac{e x}{d}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{d f^2}+\frac{g (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{d f^2 x}+\frac{g^{3/2} \log \left (\frac{e \left (\sqrt{-f}-\sqrt{g} x\right )}{d \sqrt{g}+e \sqrt{-f}}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{2 (-f)^{5/2}}-\frac{g^{3/2} \log \left (\frac{e \left (\sqrt{-f}+\sqrt{g} x\right )}{e \sqrt{-f}-d \sqrt{g}}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{2 (-f)^{5/2}}-\frac{b e n \left (a+b \log \left (c (d+e x)^n\right )\right )}{3 d f x^2}-\frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{3 f x^3}-\frac{b^2 e^2 n^2}{3 d^2 f x}-\frac{b^2 e^3 n^2 \log (x)}{d^3 f}+\frac{b^2 e^3 n^2 \log (d+e x)}{3 d^3 f} \]

Antiderivative was successfully verified.

[In]

Int[(a + b*Log[c*(d + e*x)^n])^2/(x^4*(f + g*x^2)),x]

[Out]

-(b^2*e^2*n^2)/(3*d^2*f*x) - (b^2*e^3*n^2*Log[x])/(d^3*f) + (b^2*e^3*n^2*Log[d + e*x])/(3*d^3*f) - (b*e*n*(a +
 b*Log[c*(d + e*x)^n]))/(3*d*f*x^2) + (2*b*e^2*n*(d + e*x)*(a + b*Log[c*(d + e*x)^n]))/(3*d^3*f*x) + (2*b*e^3*
n*Log[-((e*x)/d)]*(a + b*Log[c*(d + e*x)^n]))/(3*d^3*f) - (2*b*e*g*n*Log[-((e*x)/d)]*(a + b*Log[c*(d + e*x)^n]
))/(d*f^2) - (e^3*(a + b*Log[c*(d + e*x)^n])^2)/(3*d^3*f) - (a + b*Log[c*(d + e*x)^n])^2/(3*f*x^3) + (g*(d + e
*x)*(a + b*Log[c*(d + e*x)^n])^2)/(d*f^2*x) + (g^(3/2)*(a + b*Log[c*(d + e*x)^n])^2*Log[(e*(Sqrt[-f] - Sqrt[g]
*x))/(e*Sqrt[-f] + d*Sqrt[g])])/(2*(-f)^(5/2)) - (g^(3/2)*(a + b*Log[c*(d + e*x)^n])^2*Log[(e*(Sqrt[-f] + Sqrt
[g]*x))/(e*Sqrt[-f] - d*Sqrt[g])])/(2*(-f)^(5/2)) - (b*g^(3/2)*n*(a + b*Log[c*(d + e*x)^n])*PolyLog[2, -((Sqrt
[g]*(d + e*x))/(e*Sqrt[-f] - d*Sqrt[g]))])/(-f)^(5/2) + (b*g^(3/2)*n*(a + b*Log[c*(d + e*x)^n])*PolyLog[2, (Sq
rt[g]*(d + e*x))/(e*Sqrt[-f] + d*Sqrt[g])])/(-f)^(5/2) + (2*b^2*e^3*n^2*PolyLog[2, 1 + (e*x)/d])/(3*d^3*f) - (
2*b^2*e*g*n^2*PolyLog[2, 1 + (e*x)/d])/(d*f^2) + (b^2*g^(3/2)*n^2*PolyLog[3, -((Sqrt[g]*(d + e*x))/(e*Sqrt[-f]
 - d*Sqrt[g]))])/(-f)^(5/2) - (b^2*g^(3/2)*n^2*PolyLog[3, (Sqrt[g]*(d + e*x))/(e*Sqrt[-f] + d*Sqrt[g])])/(-f)^
(5/2)

Rule 2416

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((h_.)*(x_))^(m_.)*((f_) + (g_.)*(x_)^(r_.))^(q
_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*Log[c*(d + e*x)^n])^p, (h*x)^m*(f + g*x^r)^q, x], x] /; FreeQ[{a,
 b, c, d, e, f, g, h, m, n, p, q, r}, x] && IntegerQ[m] && IntegerQ[q]

Rule 2398

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_)*((f_.) + (g_.)*(x_))^(q_.), x_Symbol] :> Simp[((
f + g*x)^(q + 1)*(a + b*Log[c*(d + e*x)^n])^p)/(g*(q + 1)), x] - Dist[(b*e*n*p)/(g*(q + 1)), Int[((f + g*x)^(q
 + 1)*(a + b*Log[c*(d + e*x)^n])^(p - 1))/(d + e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n, q}, x] && NeQ[e*
f - d*g, 0] && GtQ[p, 0] && NeQ[q, -1] && IntegersQ[2*p, 2*q] && ( !IGtQ[q, 0] || (EqQ[p, 2] && NeQ[q, 1]))

Rule 2411

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_.) + (g_.)*(x_))^(q_.)*((h_.) + (i_.)*(x_))
^(r_.), x_Symbol] :> Dist[1/e, Subst[Int[((g*x)/e)^q*((e*h - d*i)/e + (i*x)/e)^r*(a + b*Log[c*x^n])^p, x], x,
d + e*x], x] /; FreeQ[{a, b, c, d, e, f, g, h, i, n, p, q, r}, x] && EqQ[e*f - d*g, 0] && (IGtQ[p, 0] || IGtQ[
r, 0]) && IntegerQ[2*r]

Rule 2347

Int[(((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((d_) + (e_.)*(x_))^(q_))/(x_), x_Symbol] :> Dist[1/d, Int[((
d + e*x)^(q + 1)*(a + b*Log[c*x^n])^p)/x, x], x] - Dist[e/d, Int[(d + e*x)^q*(a + b*Log[c*x^n])^p, x], x] /; F
reeQ[{a, b, c, d, e, n}, x] && IGtQ[p, 0] && LtQ[q, -1] && IntegerQ[2*q]

Rule 2344

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)/((x_)*((d_) + (e_.)*(x_))), x_Symbol] :> Dist[1/d, Int[(a + b*
Log[c*x^n])^p/x, x], x] - Dist[e/d, Int[(a + b*Log[c*x^n])^p/(d + e*x), x], x] /; FreeQ[{a, b, c, d, e, n}, x]
 && IGtQ[p, 0]

Rule 2301

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))/(x_), x_Symbol] :> Simp[(a + b*Log[c*x^n])^2/(2*b*n), x] /; FreeQ[{a
, b, c, n}, x]

Rule 2317

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)/((d_) + (e_.)*(x_)), x_Symbol] :> Simp[(Log[1 + (e*x)/d]*(a +
b*Log[c*x^n])^p)/e, x] - Dist[(b*n*p)/e, Int[(Log[1 + (e*x)/d]*(a + b*Log[c*x^n])^(p - 1))/x, x], x] /; FreeQ[
{a, b, c, d, e, n}, x] && IGtQ[p, 0]

Rule 2391

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> -Simp[PolyLog[2, -(c*e*x^n)]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rule 2314

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*((d_) + (e_.)*(x_)^(r_.))^(q_), x_Symbol] :> Simp[(x*(d + e*x^r)^(q
+ 1)*(a + b*Log[c*x^n]))/d, x] - Dist[(b*n)/d, Int[(d + e*x^r)^(q + 1), x], x] /; FreeQ[{a, b, c, d, e, n, q,
r}, x] && EqQ[r*(q + 1) + 1, 0]

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 2319

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((d_) + (e_.)*(x_))^(q_.), x_Symbol] :> Simp[((d + e*x)^(q + 1
)*(a + b*Log[c*x^n])^p)/(e*(q + 1)), x] - Dist[(b*n*p)/(e*(q + 1)), Int[((d + e*x)^(q + 1)*(a + b*Log[c*x^n])^
(p - 1))/x, x], x] /; FreeQ[{a, b, c, d, e, n, p, q}, x] && GtQ[p, 0] && NeQ[q, -1] && (EqQ[p, 1] || (Integers
Q[2*p, 2*q] &&  !IGtQ[q, 0]) || (EqQ[p, 2] && NeQ[q, 1]))

Rule 44

Int[((a_) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d*
x)^n, x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0] && ILtQ[m, 0] && IntegerQ[n] &&  !(IGtQ[n, 0] && L
tQ[m + n + 2, 0])

Rule 2397

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_)/((f_.) + (g_.)*(x_))^2, x_Symbol] :> Simp[((d +
e*x)*(a + b*Log[c*(d + e*x)^n])^p)/((e*f - d*g)*(f + g*x)), x] - Dist[(b*e*n*p)/(e*f - d*g), Int[(a + b*Log[c*
(d + e*x)^n])^(p - 1)/(f + g*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n}, x] && NeQ[e*f - d*g, 0] && GtQ[p, 0
]

Rule 2394

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Simp[(Log[(e*(f +
g*x))/(e*f - d*g)]*(a + b*Log[c*(d + e*x)^n]))/g, x] - Dist[(b*e*n)/g, Int[Log[(e*(f + g*x))/(e*f - d*g)]/(d +
 e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n}, x] && NeQ[e*f - d*g, 0]

Rule 2315

Int[Log[(c_.)*(x_)]/((d_) + (e_.)*(x_)), x_Symbol] :> -Simp[PolyLog[2, 1 - c*x]/e, x] /; FreeQ[{c, d, e}, x] &
& EqQ[e + c*d, 0]

Rule 2409

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_) + (g_.)*(x_)^(r_))^(q_.), x_Symbol] :> In
t[ExpandIntegrand[(a + b*Log[c*(d + e*x)^n])^p, (f + g*x^r)^q, x], x] /; FreeQ[{a, b, c, d, e, f, g, n, r}, x]
 && IGtQ[p, 0] && IntegerQ[q] && (GtQ[q, 0] || (IntegerQ[r] && NeQ[r, 1]))

Rule 2396

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_)/((f_.) + (g_.)*(x_)), x_Symbol] :> Simp[(Log[(e*
(f + g*x))/(e*f - d*g)]*(a + b*Log[c*(d + e*x)^n])^p)/g, x] - Dist[(b*e*n*p)/g, Int[(Log[(e*(f + g*x))/(e*f -
d*g)]*(a + b*Log[c*(d + e*x)^n])^(p - 1))/(d + e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n, p}, x] && NeQ[e*
f - d*g, 0] && IGtQ[p, 1]

Rule 2433

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_.) + Log[(h_.)*((i_.) + (j_.)*(x_))^(m_.)]*
(g_.))*((k_.) + (l_.)*(x_))^(r_.), x_Symbol] :> Dist[1/e, Subst[Int[((k*x)/d)^r*(a + b*Log[c*x^n])^p*(f + g*Lo
g[h*((e*i - d*j)/e + (j*x)/e)^m]), x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, f, g, h, i, j, k, l, n, p, r},
 x] && EqQ[e*k - d*l, 0]

Rule 2374

Int[(Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.))/(x_), x_Symbol] :> -Sim
p[(PolyLog[2, -(d*f*x^m)]*(a + b*Log[c*x^n])^p)/m, x] + Dist[(b*n*p)/m, Int[(PolyLog[2, -(d*f*x^m)]*(a + b*Log
[c*x^n])^(p - 1))/x, x], x] /; FreeQ[{a, b, c, d, e, f, m, n}, x] && IGtQ[p, 0] && EqQ[d*e, 1]

Rule 6589

Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_Symbol] :> Simp[PolyLog[n + 1, c*(a
+ b*x)^p]/(e*p), x] /; FreeQ[{a, b, c, d, e, n, p}, x] && EqQ[b*d, a*e]

Rubi steps

\begin{align*} \int \frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{x^4 \left (f+g x^2\right )} \, dx &=\int \left (\frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{f x^4}-\frac{g \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{f^2 x^2}+\frac{g^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{f^2 \left (f+g x^2\right )}\right ) \, dx\\ &=\frac{\int \frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{x^4} \, dx}{f}-\frac{g \int \frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{x^2} \, dx}{f^2}+\frac{g^2 \int \frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{f+g x^2} \, dx}{f^2}\\ &=-\frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{3 f x^3}+\frac{g (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{d f^2 x}+\frac{g^2 \int \left (\frac{\sqrt{-f} \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{2 f \left (\sqrt{-f}-\sqrt{g} x\right )}+\frac{\sqrt{-f} \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{2 f \left (\sqrt{-f}+\sqrt{g} x\right )}\right ) \, dx}{f^2}+\frac{(2 b e n) \int \frac{a+b \log \left (c (d+e x)^n\right )}{x^3 (d+e x)} \, dx}{3 f}-\frac{(2 b e g n) \int \frac{a+b \log \left (c (d+e x)^n\right )}{x} \, dx}{d f^2}\\ &=-\frac{2 b e g n \log \left (-\frac{e x}{d}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{d f^2}-\frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{3 f x^3}+\frac{g (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{d f^2 x}-\frac{g^2 \int \frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{\sqrt{-f}-\sqrt{g} x} \, dx}{2 (-f)^{5/2}}-\frac{g^2 \int \frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{\sqrt{-f}+\sqrt{g} x} \, dx}{2 (-f)^{5/2}}+\frac{(2 b n) \operatorname{Subst}\left (\int \frac{a+b \log \left (c x^n\right )}{x \left (-\frac{d}{e}+\frac{x}{e}\right )^3} \, dx,x,d+e x\right )}{3 f}+\frac{\left (2 b^2 e^2 g n^2\right ) \int \frac{\log \left (-\frac{e x}{d}\right )}{d+e x} \, dx}{d f^2}\\ &=-\frac{2 b e g n \log \left (-\frac{e x}{d}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{d f^2}-\frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{3 f x^3}+\frac{g (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{d f^2 x}+\frac{g^{3/2} \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac{e \left (\sqrt{-f}-\sqrt{g} x\right )}{e \sqrt{-f}+d \sqrt{g}}\right )}{2 (-f)^{5/2}}-\frac{g^{3/2} \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac{e \left (\sqrt{-f}+\sqrt{g} x\right )}{e \sqrt{-f}-d \sqrt{g}}\right )}{2 (-f)^{5/2}}-\frac{2 b^2 e g n^2 \text{Li}_2\left (1+\frac{e x}{d}\right )}{d f^2}+\frac{(2 b n) \operatorname{Subst}\left (\int \frac{a+b \log \left (c x^n\right )}{\left (-\frac{d}{e}+\frac{x}{e}\right )^3} \, dx,x,d+e x\right )}{3 d f}-\frac{(2 b e n) \operatorname{Subst}\left (\int \frac{a+b \log \left (c x^n\right )}{x \left (-\frac{d}{e}+\frac{x}{e}\right )^2} \, dx,x,d+e x\right )}{3 d f}-\frac{\left (b e g^{3/2} n\right ) \int \frac{\left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac{e \left (\sqrt{-f}-\sqrt{g} x\right )}{e \sqrt{-f}+d \sqrt{g}}\right )}{d+e x} \, dx}{(-f)^{5/2}}+\frac{\left (b e g^{3/2} n\right ) \int \frac{\left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac{e \left (\sqrt{-f}+\sqrt{g} x\right )}{e \sqrt{-f}-d \sqrt{g}}\right )}{d+e x} \, dx}{(-f)^{5/2}}\\ &=-\frac{b e n \left (a+b \log \left (c (d+e x)^n\right )\right )}{3 d f x^2}-\frac{2 b e g n \log \left (-\frac{e x}{d}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{d f^2}-\frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{3 f x^3}+\frac{g (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{d f^2 x}+\frac{g^{3/2} \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac{e \left (\sqrt{-f}-\sqrt{g} x\right )}{e \sqrt{-f}+d \sqrt{g}}\right )}{2 (-f)^{5/2}}-\frac{g^{3/2} \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac{e \left (\sqrt{-f}+\sqrt{g} x\right )}{e \sqrt{-f}-d \sqrt{g}}\right )}{2 (-f)^{5/2}}-\frac{2 b^2 e g n^2 \text{Li}_2\left (1+\frac{e x}{d}\right )}{d f^2}-\frac{(2 b e n) \operatorname{Subst}\left (\int \frac{a+b \log \left (c x^n\right )}{\left (-\frac{d}{e}+\frac{x}{e}\right )^2} \, dx,x,d+e x\right )}{3 d^2 f}+\frac{\left (2 b e^2 n\right ) \operatorname{Subst}\left (\int \frac{a+b \log \left (c x^n\right )}{x \left (-\frac{d}{e}+\frac{x}{e}\right )} \, dx,x,d+e x\right )}{3 d^2 f}-\frac{\left (b g^{3/2} n\right ) \operatorname{Subst}\left (\int \frac{\left (a+b \log \left (c x^n\right )\right ) \log \left (\frac{e \left (\frac{e \sqrt{-f}+d \sqrt{g}}{e}-\frac{\sqrt{g} x}{e}\right )}{e \sqrt{-f}+d \sqrt{g}}\right )}{x} \, dx,x,d+e x\right )}{(-f)^{5/2}}+\frac{\left (b g^{3/2} n\right ) \operatorname{Subst}\left (\int \frac{\left (a+b \log \left (c x^n\right )\right ) \log \left (\frac{e \left (\frac{e \sqrt{-f}-d \sqrt{g}}{e}+\frac{\sqrt{g} x}{e}\right )}{e \sqrt{-f}-d \sqrt{g}}\right )}{x} \, dx,x,d+e x\right )}{(-f)^{5/2}}+\frac{\left (b^2 e n^2\right ) \operatorname{Subst}\left (\int \frac{1}{x \left (-\frac{d}{e}+\frac{x}{e}\right )^2} \, dx,x,d+e x\right )}{3 d f}\\ &=-\frac{b e n \left (a+b \log \left (c (d+e x)^n\right )\right )}{3 d f x^2}+\frac{2 b e^2 n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )}{3 d^3 f x}-\frac{2 b e g n \log \left (-\frac{e x}{d}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{d f^2}-\frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{3 f x^3}+\frac{g (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{d f^2 x}+\frac{g^{3/2} \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac{e \left (\sqrt{-f}-\sqrt{g} x\right )}{e \sqrt{-f}+d \sqrt{g}}\right )}{2 (-f)^{5/2}}-\frac{g^{3/2} \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac{e \left (\sqrt{-f}+\sqrt{g} x\right )}{e \sqrt{-f}-d \sqrt{g}}\right )}{2 (-f)^{5/2}}-\frac{b g^{3/2} n \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_2\left (-\frac{\sqrt{g} (d+e x)}{e \sqrt{-f}-d \sqrt{g}}\right )}{(-f)^{5/2}}+\frac{b g^{3/2} n \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_2\left (\frac{\sqrt{g} (d+e x)}{e \sqrt{-f}+d \sqrt{g}}\right )}{(-f)^{5/2}}-\frac{2 b^2 e g n^2 \text{Li}_2\left (1+\frac{e x}{d}\right )}{d f^2}+\frac{\left (2 b e^2 n\right ) \operatorname{Subst}\left (\int \frac{a+b \log \left (c x^n\right )}{-\frac{d}{e}+\frac{x}{e}} \, dx,x,d+e x\right )}{3 d^3 f}-\frac{\left (2 b e^3 n\right ) \operatorname{Subst}\left (\int \frac{a+b \log \left (c x^n\right )}{x} \, dx,x,d+e x\right )}{3 d^3 f}+\frac{\left (b^2 e n^2\right ) \operatorname{Subst}\left (\int \left (\frac{e^2}{d (d-x)^2}+\frac{e^2}{d^2 (d-x)}+\frac{e^2}{d^2 x}\right ) \, dx,x,d+e x\right )}{3 d f}-\frac{\left (2 b^2 e^2 n^2\right ) \operatorname{Subst}\left (\int \frac{1}{-\frac{d}{e}+\frac{x}{e}} \, dx,x,d+e x\right )}{3 d^3 f}+\frac{\left (b^2 g^{3/2} n^2\right ) \operatorname{Subst}\left (\int \frac{\text{Li}_2\left (-\frac{\sqrt{g} x}{e \sqrt{-f}-d \sqrt{g}}\right )}{x} \, dx,x,d+e x\right )}{(-f)^{5/2}}-\frac{\left (b^2 g^{3/2} n^2\right ) \operatorname{Subst}\left (\int \frac{\text{Li}_2\left (\frac{\sqrt{g} x}{e \sqrt{-f}+d \sqrt{g}}\right )}{x} \, dx,x,d+e x\right )}{(-f)^{5/2}}\\ &=-\frac{b^2 e^2 n^2}{3 d^2 f x}-\frac{b^2 e^3 n^2 \log (x)}{d^3 f}+\frac{b^2 e^3 n^2 \log (d+e x)}{3 d^3 f}-\frac{b e n \left (a+b \log \left (c (d+e x)^n\right )\right )}{3 d f x^2}+\frac{2 b e^2 n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )}{3 d^3 f x}+\frac{2 b e^3 n \log \left (-\frac{e x}{d}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{3 d^3 f}-\frac{2 b e g n \log \left (-\frac{e x}{d}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{d f^2}-\frac{e^3 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{3 d^3 f}-\frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{3 f x^3}+\frac{g (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{d f^2 x}+\frac{g^{3/2} \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac{e \left (\sqrt{-f}-\sqrt{g} x\right )}{e \sqrt{-f}+d \sqrt{g}}\right )}{2 (-f)^{5/2}}-\frac{g^{3/2} \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac{e \left (\sqrt{-f}+\sqrt{g} x\right )}{e \sqrt{-f}-d \sqrt{g}}\right )}{2 (-f)^{5/2}}-\frac{b g^{3/2} n \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_2\left (-\frac{\sqrt{g} (d+e x)}{e \sqrt{-f}-d \sqrt{g}}\right )}{(-f)^{5/2}}+\frac{b g^{3/2} n \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_2\left (\frac{\sqrt{g} (d+e x)}{e \sqrt{-f}+d \sqrt{g}}\right )}{(-f)^{5/2}}-\frac{2 b^2 e g n^2 \text{Li}_2\left (1+\frac{e x}{d}\right )}{d f^2}+\frac{b^2 g^{3/2} n^2 \text{Li}_3\left (-\frac{\sqrt{g} (d+e x)}{e \sqrt{-f}-d \sqrt{g}}\right )}{(-f)^{5/2}}-\frac{b^2 g^{3/2} n^2 \text{Li}_3\left (\frac{\sqrt{g} (d+e x)}{e \sqrt{-f}+d \sqrt{g}}\right )}{(-f)^{5/2}}-\frac{\left (2 b^2 e^3 n^2\right ) \operatorname{Subst}\left (\int \frac{\log \left (1-\frac{x}{d}\right )}{x} \, dx,x,d+e x\right )}{3 d^3 f}\\ &=-\frac{b^2 e^2 n^2}{3 d^2 f x}-\frac{b^2 e^3 n^2 \log (x)}{d^3 f}+\frac{b^2 e^3 n^2 \log (d+e x)}{3 d^3 f}-\frac{b e n \left (a+b \log \left (c (d+e x)^n\right )\right )}{3 d f x^2}+\frac{2 b e^2 n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )}{3 d^3 f x}+\frac{2 b e^3 n \log \left (-\frac{e x}{d}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{3 d^3 f}-\frac{2 b e g n \log \left (-\frac{e x}{d}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{d f^2}-\frac{e^3 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{3 d^3 f}-\frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{3 f x^3}+\frac{g (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{d f^2 x}+\frac{g^{3/2} \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac{e \left (\sqrt{-f}-\sqrt{g} x\right )}{e \sqrt{-f}+d \sqrt{g}}\right )}{2 (-f)^{5/2}}-\frac{g^{3/2} \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac{e \left (\sqrt{-f}+\sqrt{g} x\right )}{e \sqrt{-f}-d \sqrt{g}}\right )}{2 (-f)^{5/2}}-\frac{b g^{3/2} n \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_2\left (-\frac{\sqrt{g} (d+e x)}{e \sqrt{-f}-d \sqrt{g}}\right )}{(-f)^{5/2}}+\frac{b g^{3/2} n \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_2\left (\frac{\sqrt{g} (d+e x)}{e \sqrt{-f}+d \sqrt{g}}\right )}{(-f)^{5/2}}+\frac{2 b^2 e^3 n^2 \text{Li}_2\left (1+\frac{e x}{d}\right )}{3 d^3 f}-\frac{2 b^2 e g n^2 \text{Li}_2\left (1+\frac{e x}{d}\right )}{d f^2}+\frac{b^2 g^{3/2} n^2 \text{Li}_3\left (-\frac{\sqrt{g} (d+e x)}{e \sqrt{-f}-d \sqrt{g}}\right )}{(-f)^{5/2}}-\frac{b^2 g^{3/2} n^2 \text{Li}_3\left (\frac{\sqrt{g} (d+e x)}{e \sqrt{-f}+d \sqrt{g}}\right )}{(-f)^{5/2}}\\ \end{align*}

Mathematica [C]  time = 0.791029, size = 930, normalized size = 1.34 \[ \frac{6 \sqrt{f} g x^2 \left (a-b n \log (d+e x)+b \log \left (c (d+e x)^n\right )\right )^2 d^3-2 f^{3/2} \left (a-b n \log (d+e x)+b \log \left (c (d+e x)^n\right )\right )^2 d^3+6 g^{3/2} x^3 \tan ^{-1}\left (\frac{\sqrt{g} x}{\sqrt{f}}\right ) \left (a-b n \log (d+e x)+b \log \left (c (d+e x)^n\right )\right )^2 d^3+2 i b n \left (a-b n \log (d+e x)+b \log \left (c (d+e x)^n\right )\right ) \left (-3 d^3 g^{3/2} \left (\log (d+e x) \log \left (\frac{e \left (i \sqrt{g} x+\sqrt{f}\right )}{e \sqrt{f}-i d \sqrt{g}}\right )+\text{PolyLog}\left (2,-\frac{i \sqrt{g} (d+e x)}{e \sqrt{f}-i d \sqrt{g}}\right )\right ) x^3+3 d^3 g^{3/2} \left (\log (d+e x) \log \left (\frac{e \left (\sqrt{f}-i \sqrt{g} x\right )}{i \sqrt{g} d+e \sqrt{f}}\right )+\text{PolyLog}\left (2,\frac{i \sqrt{g} (d+e x)}{i \sqrt{g} d+e \sqrt{f}}\right )\right ) x^3+6 i d^2 \sqrt{f} g (e x \log (x)-(d+e x) \log (d+e x)) x^2+i f^{3/2} \left (-2 e^3 \log (x) x^3+d e (d-2 e x) x+2 \left (d^3+e^3 x^3\right ) \log (d+e x)\right )\right )+i b^2 n^2 \left (3 d^3 g^{3/2} \left (\log \left (1-\frac{\sqrt{g} (d+e x)}{d \sqrt{g}-i e \sqrt{f}}\right ) \log ^2(d+e x)+2 \text{PolyLog}\left (2,\frac{\sqrt{g} (d+e x)}{d \sqrt{g}-i e \sqrt{f}}\right ) \log (d+e x)-2 \text{PolyLog}\left (3,\frac{\sqrt{g} (d+e x)}{d \sqrt{g}-i e \sqrt{f}}\right )\right ) x^3-3 d^3 g^{3/2} \left (\log \left (1-\frac{\sqrt{g} (d+e x)}{\sqrt{g} d+i e \sqrt{f}}\right ) \log ^2(d+e x)+2 \text{PolyLog}\left (2,\frac{\sqrt{g} (d+e x)}{\sqrt{g} d+i e \sqrt{f}}\right ) \log (d+e x)-2 \text{PolyLog}\left (3,\frac{\sqrt{g} (d+e x)}{\sqrt{g} d+i e \sqrt{f}}\right )\right ) x^3+6 i d^2 \sqrt{f} g \left (-(d+e x) \log ^2(d+e x)+2 e x \log \left (-\frac{e x}{d}\right ) \log (d+e x)+2 e x \text{PolyLog}\left (2,\frac{e x}{d}+1\right )\right ) x^2+2 i f^{3/2} \left (\log ^2(d+e x) d^3+e x \log (d+e x) d^2+e^2 x^2 d-2 e^2 x^2 \log (d+e x) d+e^3 x^3 \log ^2(d+e x)+3 e^3 x^3 \log (x)-3 e^3 x^3 \log (d+e x)-2 e^3 x^3 \log \left (-\frac{e x}{d}\right ) \log (d+e x)-2 e^3 x^3 \text{PolyLog}\left (2,\frac{e x}{d}+1\right )\right )\right )}{6 d^3 f^{5/2} x^3} \]

Antiderivative was successfully verified.

[In]

Integrate[(a + b*Log[c*(d + e*x)^n])^2/(x^4*(f + g*x^2)),x]

[Out]

(-2*d^3*f^(3/2)*(a - b*n*Log[d + e*x] + b*Log[c*(d + e*x)^n])^2 + 6*d^3*Sqrt[f]*g*x^2*(a - b*n*Log[d + e*x] +
b*Log[c*(d + e*x)^n])^2 + 6*d^3*g^(3/2)*x^3*ArcTan[(Sqrt[g]*x)/Sqrt[f]]*(a - b*n*Log[d + e*x] + b*Log[c*(d + e
*x)^n])^2 + (2*I)*b*n*(a - b*n*Log[d + e*x] + b*Log[c*(d + e*x)^n])*((6*I)*d^2*Sqrt[f]*g*x^2*(e*x*Log[x] - (d
+ e*x)*Log[d + e*x]) + I*f^(3/2)*(d*e*x*(d - 2*e*x) - 2*e^3*x^3*Log[x] + 2*(d^3 + e^3*x^3)*Log[d + e*x]) - 3*d
^3*g^(3/2)*x^3*(Log[d + e*x]*Log[(e*(Sqrt[f] + I*Sqrt[g]*x))/(e*Sqrt[f] - I*d*Sqrt[g])] + PolyLog[2, ((-I)*Sqr
t[g]*(d + e*x))/(e*Sqrt[f] - I*d*Sqrt[g])]) + 3*d^3*g^(3/2)*x^3*(Log[d + e*x]*Log[(e*(Sqrt[f] - I*Sqrt[g]*x))/
(e*Sqrt[f] + I*d*Sqrt[g])] + PolyLog[2, (I*Sqrt[g]*(d + e*x))/(e*Sqrt[f] + I*d*Sqrt[g])])) + I*b^2*n^2*((6*I)*
d^2*Sqrt[f]*g*x^2*(2*e*x*Log[-((e*x)/d)]*Log[d + e*x] - (d + e*x)*Log[d + e*x]^2 + 2*e*x*PolyLog[2, 1 + (e*x)/
d]) + (2*I)*f^(3/2)*(d*e^2*x^2 + 3*e^3*x^3*Log[x] + d^2*e*x*Log[d + e*x] - 2*d*e^2*x^2*Log[d + e*x] - 3*e^3*x^
3*Log[d + e*x] - 2*e^3*x^3*Log[-((e*x)/d)]*Log[d + e*x] + d^3*Log[d + e*x]^2 + e^3*x^3*Log[d + e*x]^2 - 2*e^3*
x^3*PolyLog[2, 1 + (e*x)/d]) + 3*d^3*g^(3/2)*x^3*(Log[d + e*x]^2*Log[1 - (Sqrt[g]*(d + e*x))/((-I)*e*Sqrt[f] +
 d*Sqrt[g])] + 2*Log[d + e*x]*PolyLog[2, (Sqrt[g]*(d + e*x))/((-I)*e*Sqrt[f] + d*Sqrt[g])] - 2*PolyLog[3, (Sqr
t[g]*(d + e*x))/((-I)*e*Sqrt[f] + d*Sqrt[g])]) - 3*d^3*g^(3/2)*x^3*(Log[d + e*x]^2*Log[1 - (Sqrt[g]*(d + e*x))
/(I*e*Sqrt[f] + d*Sqrt[g])] + 2*Log[d + e*x]*PolyLog[2, (Sqrt[g]*(d + e*x))/(I*e*Sqrt[f] + d*Sqrt[g])] - 2*Pol
yLog[3, (Sqrt[g]*(d + e*x))/(I*e*Sqrt[f] + d*Sqrt[g])])))/(6*d^3*f^(5/2)*x^3)

________________________________________________________________________________________

Maple [F]  time = 9.815, size = 0, normalized size = 0. \begin{align*} \int{\frac{ \left ( a+b\ln \left ( c \left ( ex+d \right ) ^{n} \right ) \right ) ^{2}}{{x}^{4} \left ( g{x}^{2}+f \right ) }}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*ln(c*(e*x+d)^n))^2/x^4/(g*x^2+f),x)

[Out]

int((a+b*ln(c*(e*x+d)^n))^2/x^4/(g*x^2+f),x)

________________________________________________________________________________________

Maxima [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*(e*x+d)^n))^2/x^4/(g*x^2+f),x, algorithm="maxima")

[Out]

Exception raised: ValueError

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{b^{2} \log \left ({\left (e x + d\right )}^{n} c\right )^{2} + 2 \, a b \log \left ({\left (e x + d\right )}^{n} c\right ) + a^{2}}{g x^{6} + f x^{4}}, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*(e*x+d)^n))^2/x^4/(g*x^2+f),x, algorithm="fricas")

[Out]

integral((b^2*log((e*x + d)^n*c)^2 + 2*a*b*log((e*x + d)^n*c) + a^2)/(g*x^6 + f*x^4), x)

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*ln(c*(e*x+d)**n))**2/x**4/(g*x**2+f),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b \log \left ({\left (e x + d\right )}^{n} c\right ) + a\right )}^{2}}{{\left (g x^{2} + f\right )} x^{4}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*(e*x+d)^n))^2/x^4/(g*x^2+f),x, algorithm="giac")

[Out]

integrate((b*log((e*x + d)^n*c) + a)^2/((g*x^2 + f)*x^4), x)